import request from '@/utils/request'

// 封装列表请求接口
export const getListFeeRulesAPI = (params) => {
  return request.get('/parking/rule/list', { params })
}

// 添加计费规则
export const addFeeRulesAPI = (data) => {
  return request({
    url: '/parking/rule',
    method: 'post',
    data
  })
}

// 删除接口
export const delFeeRulesAPI = (id) => {
  return request.delete(`/parking/rule/${id}`)
}
